import httpClient from "@/utils/httpClient";
import router from '../router'
import { clearStore } from "@/utils/localStorage.js";
import qs from "qs";
import {
  Message
} from 'element-ui'
const proxyRewrittenPath = process.env.NODE_ENV == 'development' ? "" : process.env.VUE_APP_URL;
// const proxyRewrittenPath = "https://rfid.13yu.com/newssy/index.php";
const baseURL = `${proxyRewrittenPath}`;
httpClient.configure({
  baseURL,
  interceptors: {
    response: {
      onFulfilled: response => {
        revokeDownloadIfNeed(response);
        if (typeof response.data == "string") {

          let item = response.data.substring(0, 12)
          if (item == 'string(0) ""') {
            let items = response.data.substring(12)
            response.data = JSON.parse(items)
          } else {
            let index = response.data.indexOf('{')
            let item = response.data.substring(0, index - 1)
            let items = response.data.substring(index - 1)
            response.data = JSON.parse(items.substring(1, items.length - 2))
          }
        }
        if (response.status == 200) { //For Java Response
          if (response.data.code == 0 || response.data.code == 200) {
            return response.data
          } else if (response.data.code == 404) {
            Message.warning("账号已过期或在其它地方登录。需重新登陆")
            clearStore()
            return router.push("/qrCode")
          } else if(response.data.code === -1){
            return response.data;
          } else {
            Message.warning(response.data.msg || "失败");
          }
          return Promise.reject(response.data);
        }

      },
      onRejected: error => {
        console.log("error.response", error.response)
        if (error.response.status === 401) {
          clearStore();
          Message.closeAll()
          Message.warning("账号已过期或在其它地方登录。需重新登陆")
          return router.push("/qrCode")
        }
        if (error.response.status === 403) {
          Message.closeAll()
          Message.warning(error.response.data.msg || "失败")
          return
        }
        return Promise.reject({
          msg: error.message,
          code: error.response.status,
          data: error.response.data
        });
      }
    }
  }
});
const revokeDownloadIfNeed = response => {
  if (!needRevokeDownload(response)) {
    return;
  }
  revokeDownload(response);
};

const needRevokeDownload = response => {
  return response.data instanceof Blob;
};

const revokeDownload = response => {
  const blob = new Blob([response.data], {
    type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"
  });

  const downloadElement = document.createElement("a");

  const href = window.URL.createObjectURL(blob);

  downloadElement.href = href;
  const name = response.headers["content-disposition"].replace(
      /attachment;filename=/,
      ""
  );
  downloadElement.download = decodeURIComponent(name);
  document.body.appendChild(downloadElement);

  downloadElement.click();

  document.body.removeChild(downloadElement);

  window.URL.revokeObjectURL(href);
};

export async function postHomeOpenProcessingOrderUpload() {
  return await httpClient.post({
    url: `/home/Open/processingOrderUpload`,
    data: {
      "partnerid": "cc17c30cd111c7215fc8f51f8790e0e1",
      "partnerkey": "5d7505fd479d5982348b2bbe099410c3",
      "token": "fbf772d275020e50523e90f1d955ac0d",
      "times": "1630466092",
      "method": "ceshiOrdersWeightSendUpload",
      "sing": "412d6094ad4d83992e8952622db78756",
    }
  });
}
// 上传图片
export async function uploadHomeApiupload(file) {
  return await httpClient.upload({
    url: `/Admin/Api/upload`,
    fileObject: file,
    fileName: "file"
  });
}
// 获取所有门店
export async function getApiGetshoplist() {
  return await httpClient.get({
    url: `/Admin/Api/getshoplist`
  });
}
// 报表
export async function postApiGetreport(data) {
  return await httpClient.post({
    url: `/Admin/Api/getreport`,
    data
  });
}

//加载排班表
export async function postApiApischeduling(data) {
  return await httpClient.post({
    url: `/Admin/Api/apischeduling`,
    data
  });
}

//登录
export async function postApiApilogin(data) {
  return await httpClient.post({
    url: `/Admin/Api/login`,
    data
  });
}

// 工厂端登录
export async function postApiApilogin_scm(data) {
  return await httpClient.post({
    url: `/Admin/Api/login_scm`,
    data
  });
}
//登录测试
export async function postAdminApilogin_test(data) {
  return await httpClient.post({
    url: `/Admin/Api/login_test`,
    data
  });
}

//品类列表
export async function postApigetcategory(data) {
  return await httpClient.post({
    url: `/Admin/Api/getcategory`,
    data
  });
}

//编辑品类
export async function postApieditcategory(data) {
  return await httpClient.post({
    url: `/Admin/Api/editcategory`,
    data
  });
}


//禁用\启用品类
export async function postApidisablecategory(data) {
  return await httpClient.post({
    url: `/Admin/Api/disablecategory`,
    data
  });
}

//删除品类
export async function postApidelcategory(id) {
  return await httpClient.post({
    url: `/Admin/Api/delcategory`,
    data: {
      id
    }
  });
}


//企划列表
export async function postApigetplanning(data) {
  return await httpClient.post({
    url: `/Admin/Api/getplanning`,
    data
  });
}

//编辑企划
export async function postApieditplanning(data) {
  return await httpClient.post({
    url: `/Admin/Api/editplanning`,
    data
  });
}

//删除企划
export async function postApidelplanning(id) {
  return await httpClient.post({
    url: `/Admin/Api/delplanning`,
    data: {
      id
    }
  });
}

//套装列表
export async function postApigetsuit(data) {
  return await httpClient.post({
    url: `/Admin/Api/getsuit`,
    data
  });
}

//编辑套装
export async function postApieditsuit(data) {
  return await httpClient.post({
    url: `/Admin/Api/editsuit`,
    data
  });
}

//删除套装
export async function postApidelsuit(id) {
  return await httpClient.post({
    url: `/Admin/Api/delsuit`,
    data: {
      id
    }
  });
}

//套装列表
export async function postApigetdynasty(data) {
  return await httpClient.post({
    url: `/Admin/Api/getdynasty`,
    data
  });
}

//编辑套装
export async function postApieditdynasty(data) {
  return await httpClient.post({
    url: `/Admin/Api/editdynasty`,
    data
  });
}

//删除套装
export async function postApideldynasty(id) {
  return await httpClient.post({
    url: `/Admin/Api/deldynasty`,
    data: {
      id
    }
  });
}

// 详情套装
export async function postApiLooksuit(id) {
  return await httpClient.post({
    url: `/Admin/Api/looksuit`,
    data: {
      id
    }
  });
}

// 设计师/产品经理列表
export async function postApigetdesigner(data) {
  return await httpClient.post({
    url: `/Admin/Api/getdesigner`,
    data
  });
}

// 分配给设计师
export async function postApibinding(data) {
  return await httpClient.post({
    url: `/Admin/Api/binding`,
    data
  });
}

// 套装申请列表
export async function postApigetshensuit(id) {
  return await httpClient.post({
    url: `/Admin/Api/getshensuit`,
    data: {
      id
    }
  });
}

// 套装申请处理
export async function postApiagree(id) {
  return await httpClient.post({
    url: `/Admin/Api/agree`,
    data: {
      id
    }
  });
}

// 取消分配
export async function postApisetcancel(id) {
  return await httpClient.post({
    url: `/Admin/Api/setcancel`,
    data: {
      id
    }
  });
}

// 行政采购信息列表
export async function postApiadministrationindex(data) {
  return await httpClient.post({
    url: `/Admin/Api/administrationindex`,
    data
  });
}

// 编辑采购信息
export async function postApiadministrationedit(data) {
  return await httpClient.post({
    url: `/Admin/Api/administrationedit`,
    data
  });
}

// 采购详情
export async function postApiadministrationlook(id) {
  return await httpClient.post({
    url: `/Admin/Api/administrationlook`,
    data: {
      id
    }
  });
}

// 删除采购
export async function postApiadministrationdel(id) {
  return await httpClient.post({
    url: `/Admin/Api/administrationdel`,
    data: {
      id
    }
  });
}

// 淘宝对账明细
export async function postApiinfolist(data) {
  return await httpClient.post({
    url: `/Admin/Api/infolist`,
    data
  });
}

// 淘宝退款对账明细
export async function postApirefundlist(data) {
  return await httpClient.post({
    url: `/Admin/Api/refundlist`,
    data
  });
}

// 天猫收入对账明细
export async function postApitminfolist(data) {
  return await httpClient.post({
    url: `/Admin/Api/tminfolist`,
    data
  });
}

// 生产部看板
export async function postApisupplychainindex(data) {
  return await httpClient.post({
    url: `/Admin/Api/supplychainindex`,
    data
  });
}

// 运营部看板
export async function postApisupplychainoperate(data) {
  return await httpClient.post({
    url: `/Admin/Api/supplychainoperate`,
    data
  });
}

// 延期库存
export async function postApiamount(data) {
  return await httpClient.post({
    url: `/Admin/Api/amount`,
    data
  });
}

// 无交期数据
export async function postApiamountno(data) {
  return await httpClient.post({
    url: `/Admin/Api/amountno`,
    data
  });
}

// 7天预警
export async function postApiwarning(data) {
  return await httpClient.post({
    url: `/Admin/Api/warning`,
    data
  });
}

// 7天预警对应的天数
export async function postApiwdatenum() {
  return await httpClient.post({
    url: `/Admin/Api/datenum`
  });
}


// 赠品延期
export async function postApigift() {
  return await httpClient.post({
    url: `/Admin/Api/gift`
  });
}

// 延期柱状图
export async function postApilooklist() {
  return await httpClient.post({
    url: `/Admin/Api/looklist`
  });
}

// 延期柱状图
export async function postApicakelist() {
  return await httpClient.post({
    url: `/Admin/Api/cakelist`
  });
}


// 延期对比折线图
export async function postApibrokenlist() {
  return await httpClient.post({
    url: `/Admin/Api/brokenlist`
  });
}


// 等待订单数柱状图
export async function postApiorderlist() {
  return await httpClient.post({
    url: `/Admin/Api/orderlist`
  });
}

// 总看板数据(不刷新)
export async function postApilookindex() {
  return await httpClient.post({
    url: `/Admin/Api/lookindex`
  });
}

// 总看板数据(刷新)
export async function postApilookdate(data) {
  return await httpClient.post({
    url: `/Admin/Api/lookdate`,
    data
  });
}

// 总看板（刷新列表，下拉天数）
export async function postApixialadays() {
  return await httpClient.post({
    url: `/Admin/Api/xialadays`
  });
}

// 总看板（刷新列表，下拉天数）
export async function postApiaddcontentdo(data) {
  return await httpClient.post({
    url: `/Admin/Api/addcontentdo`,
    data
  });
}

// 延期库存导出
export async function postExcelamoountexport_new(data) {
  return await httpClient.post({
    url: `/Admin/Excel/amoountexport_new`,
    data
  });
}

// 加工单列表
export async function postCodegetPocessinglist(data) {
  return await httpClient.post({
    url: `/Admin/code/getpocessinglist`,
    data
  });
}

// 申请作废
export async function postCodeApplyabandoned(data) {
  return await httpClient.post({
    url: `/Admin/code/applyabandoned`,
    data
  });
}

// frid列表
export async function postCodeGetpocessingdetails(data) {
  return await httpClient.post({
    url: `/Admin/code/getpocessingdetails`,
    data
  });
}

// 申请作废列表
export async function postCodeGetapplyabandoned(data) {
  return await httpClient.post({
    url: `/Admin/code/getapplyabandoned`,
    data
  });
}

// 作废列表
export async function postCodeGetabandoned(data) {
  return await httpClient.post({
    url: `/Admin/code/getabandoned`,
    data
  });
}

// 作废审批
export async function postCodeSetapplyabandoned(data) {
  return await httpClient.post({
    url: `/Admin/code/setapplyabandoned`,
    data
  });
}

// 补生成frid
export async function postCodePusetprocessingnumber(data) {
  return await httpClient.post({
    url: `/Admin/code/pusetprocessingnumber`,
    data
  });
}

// 导入一衣一码
export async function uploadCodeProcessingimport(file) {
  return await httpClient.upload({
    url: `/Admin/code/processingimport`,
    fileObject: file,
    fileName: "file",
  });
}


// 跳转小程序
export async function postGetscheme() {
  return await httpClient.post({
    url: `/Home/Code/getscheme`
  });
}

// 加工单列表
export async function postGetprocessing_list(data) {
  return await httpClient.post({
    url: `/Admin/Code/getprocessing_list`,
    data
  });
}

// 编辑溢装比
export async function postSetoverflow(data) {
  return await httpClient.post({
    url: `/Admin/Code/setoverflow`,
    data
  });
}

// 设置发给加工厂
export async function postSetprocessingfa(ids) {
  return await httpClient.post({
    url: `/Admin/Code/setprocessingfa`,
    data: {
      ids
    }
  });
}

// 看板数据--统计
export async function postCodeLookdata() {
  return await httpClient.post({
    url: `/Admin/code/lookdata`
  });
}

// 看板数据--图表
export async function postCodeGetweeksdata() {
  return await httpClient.post({
    url: `/Admin/code/getweeksdata`
  });
}

// 看板数据--列表
export async function postCodeGetlookindex(data) {
  return await httpClient.post({
    url: `/Admin/code/getlookindex`,
    data
  });
}

// rfid码的时间节点
export async function postCodeGetnumber(data) {
  return await httpClient.post({
    url: `/Admin/code/getnumber`,
    data
  });
}

// 退款记录-列表
export async function postApiGetrefunddate(data) {
  return await httpClient.post({
    url: `/Admin/Api/getrefunddate`,
    data
  });
}
// 退款记录-饼图
export async function postApiGetrefunddate_piechart(data) {
  return await httpClient.post({
    url: `/Admin/Api/getrefunddate_piechart`,
    data
  });
}

// 退款记录-导出
export async function postExcelRefundexport(data) {
  return await httpClient.download({
    url: `/Admin/Excel/refundexport`,
    method: "POST",
    data
  });
}

// Qc质检名单
export async function postApiCodeGetQcuserlist(data) {
  return await httpClient.post({
    url: `/Admin/code/getQcuserlist`,
    data
  });
}

// 仓库质检名单
export async function postApiCodeGetQtuserlist(data) {
  return await httpClient.post({
    url: `/Admin/code/getQtuserlist`,
    data
  });
}

// Qc质检--数据统计
export async function postApiCodeGetQcdetail(data) {
  return await httpClient.post({
    url: `/Admin/code/getQcdetail`,
    data
  });
}

// 仓库质检--数据统计
export async function postApiCodeGetQtdetail(data) {
  return await httpClient.post({
    url: `/Admin/code/getQtdetail`,
    data
  });
}

// Qc质检--数据列表
export async function postApiCodeGetQcdetaillist(data) {
  return await httpClient.post({
    url: `/Admin/code/getQcdetaillist `,
    data
  });
}

// 仓库质检--数据列表
export async function postApiCodeGetQtdetaillist(data) {
  return await httpClient.post({
    url: `/Admin/code/getQtdetaillist`,
    data
  });
}


// Qc--数据列表
export async function postApiCodeGetQclookban(data) {
  return await httpClient.post({
    url: `/Admin/code/getQclookban`,
    data
  });
}
// 质检--数据列表
export async function postApiCodeGetQtlookban(data) {
  return await httpClient.post({
    url: `/Admin/code/getQtlookban`,
    data
  });
}
// Qc/质检--数据列表
export async function postApiCodeGetQcbanlist(data) {
  return await httpClient.post({
    url: `/Admin/code/getQcbanlist`,
    data
  });
}
export async function postApiCodeGetQtbanlist(data) {
  return await httpClient.post({
    url: `/Admin/code/getQtbanlist`,
    data
  });
}

// QC/仓检 不合格统计——图表
export async function postApiCodeGetQclookdetail(data) {
  return await httpClient.post({
    url: `/Admin/code/getQclookdetail`,
    data
  });
}
export async function postApiCodeGetQtlookdetail(data) {
  return await httpClient.post({
    url: `/Admin/code/getQtlookdetail`,
    data
  });
}

// QC/仓检不合格详情——列表
export async function postApiCodeGetQcnopassdetaillist(data) {
  return await httpClient.post({
    url: `/Admin/code/getQcnopassdetaillist`,
    data
  });
}
export async function postApiCodeGetQtnopassdetaillist(data) {
  return await httpClient.post({
    url: `/Admin/code/getQtnopassdetaillist`,
    data
  });
}

// 合格率—加工单
export async function postApiCodeGetQcProcessingrate(data) {
  return await httpClient.post({
    url: `/Admin/code/getQcProcessingrate`,
    data
  });
}

// 合格率—工厂
export async function postApiCodeGetQcfactoryNamerate(data) {
  return await httpClient.post({
    url: `/Admin/code/getQcfactoryNamerate`,
    data
  });
}

// 合格率—质检员
export async function postApiCodeGetQcuserrate(data) {
  return await httpClient.post({
    url: `/Admin/code/getQcuserrate`,
    data
  });
}

// 合格率—加工单
export async function postApiCodeGetQtProcessingrate(data) {
  return await httpClient.post({
    url: `/Admin/code/getQtProcessingrate`,
    data
  });
}

// 合格率—工厂
export async function postApiCodeGetQtfactoryNamerate(data) {
  return await httpClient.post({
    url: `/Admin/code/getQtfactoryNamerate`,
    data
  });
}

// 合格率—质检员
export async function postApiCodeGetQtuserrate(data) {
  return await httpClient.post({
    url: `/Admin/code/getQtuserrate`,
    data
  });
}

// 历史记录—Qc
export async function postApiCodeGetQchistorylsit(data) {
  return await httpClient.post({
    url: `/Admin/code/getQchistorylsit`,
    data
  });
}

// 历史记录—仓检
export async function postApiCodeGetQthistorylsit(data) {
  return await httpClient.post({
    url: `/Admin/code/getQthistorylsit`,
    data
  });
}

// 翻单列表
export async function postAdminOperateFanorder(data) {
  return await httpClient.post({
    url: `/Admin/Operate/fanorder`,
    data
  });
}

// 翻单详情
export async function postAdminOperateFanorderdetail(data) {
  return await httpClient.post({
    url: `/Admin/Operate/fanorderdetail`,
    data
  });
}

// 翻单趋势图
export async function postAdminOperateTrendchart(data) {
  return await httpClient.post({
    url: `/Admin/Operate/trendchart`,
    data
  });
}


// 加工厂列表
export async function postHomeCodeGetFactory(data) {
  return await httpClient.post({
    url: `/Home/Code/getFactory`,
    data
  });
}

// 添加加工厂用户
export async function postAdminCodeAddFactoryUser(data) {
  return await httpClient.post({
    url: `/Admin/code/addFactoryUser`,
    data
  });
}


// 加工厂用户列表
export async function postAdminCodeGetFactoryUserList(data) {
  return await httpClient.post({
    url: `/Admin/code/getFactoryUserList`,
    data
  });
}

// 发送历史
export async function postAdminCodeGetsendRfidlist(data) {
  return await httpClient.post({
    url: `/Admin/Code/getsendRfidlist`,
    data
  });
}

// 防伪码扫码记录
export async function postAdminCodeGetScancodelog(data) {
  return await httpClient.post({
    url: `/Admin/code/getScancodelog`,
    data
  });
}


// 批量免Qc检查
export async function postAdminCodeSetQcPass(data) {
  return await httpClient.post({
    url: `/Admin/code/setQcPass`,
    data
  });
}

// 投诉列表
export async function postAdminOperateComplaint_list(data) {
  return await httpClient.post({
    url: `/Admin/Operate/complaint_list`,
    data
  });
}

// 投诉原因
export async function postAdminOperateComplaint_reason(data) {
  return await httpClient.post({
    url: `/Admin/Operate/complaint_reason`,
    data
  });
}

// 投诉状态
export async function postAdminOperateComplaint_status(data) {
  return await httpClient.post({
    url: `/Admin/Operate/complaint_status`,
    data
  });
}

// 获取白名单列表
export async function postAdminRecruitmentInformationWhite_list(params) {
  return await httpClient.get({
    url: `/Admin/RecruitmentInformation/white_list`,
    params
  });
}

// 获取部门
export async function postAdminRecruitmentInformationGetProfession() {
  return await httpClient.get({
    url: `/Admin/RecruitmentInformation/getProfession`
  });
}

// 顶级模块权限列表
export async function postAdminUserCompetencelisttop(data) {
  return await httpClient.post({
    url: `/Admin/User/competencelisttop`,
    data
  });
}

// 编辑模块权限
export async function postAdminUserEditcompetence(data) {
  return await httpClient.post({
    url: `/Admin/User/editcompetence`,
    data
  });
}

// 查看模块权限
export async function postAdminUserCompetencelook(data) {
  return await httpClient.post({
    url: `/Admin/User/competencelook`,
    data
  });
}


// 删除权限
export async function postAdminUserDelcompetence(data) {
  return await httpClient.post({
    url: `/Admin/User/delcompetence`,
    data
  });
}


// 身份列表
export async function postAdminUserRolelist(data) {
  return await httpClient.post({
    url: `/Admin/User/rolelist`,
    data
  });
}


// 全部功能模块展示
export async function postAdminUserPermission_list(data) {
  return await httpClient.post({
    url: `/Admin/User/permission_list`,
    data
  });
}



// 操作列表
export async function postAdminUserOperationlist(data) {
  return await httpClient.post({
    url: `/Admin/User/operationlist`,
    data
  });
}

// 编辑操作
export async function postAdminUserEditoperation(data) {
  return await httpClient.post({
    url: `/Admin/User/editoperation`,
    data
  });
}

// 删除操作
export async function postAdminUserDeloperation(data) {
  return await httpClient.post({
    url: `/Admin/User/deloperation`,
    data
  });
}

// 查看身份角色
export async function postAdminUserRolelook(data) {
  return await httpClient.post({
    url: `/Admin/User/rolelook`,
    data
  });
}

// 编辑身份角色
export async function postAdminUserEditrole(data) {
  return await httpClient.post({
    url: `/Admin/User/editrole`,
    data
  });
}
// 删除身份角色
export async function postAdminUserDeltrole(data) {
  return await httpClient.post({
    url: `/Admin/User/deltrole`,
    data
  });
}


// 用户详情
export async function postAdminUserslook(data) {
  return await httpClient.post({
    url: `/Admin/User/userslook`,
    data
  });
}
// 获取权限身份列表
export async function postAdminUserGetusersrolelist(data) {
  return await httpClient.post({
    url: `/Admin/User/getusersrolelist`,
    data
  });
}
// 编辑用户权限身份
export async function postAdminUserEditusers(data) {
  return await httpClient.post({
    url: `/Admin/User/editusers`,
    data
  });
}

// 创建部门
export async function postAdminRecruitmentInformationAddDepartment(data) {
  return await httpClient.post({
    url: `/Admin/RecruitmentInformation/addDepartment`,
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  });
}

// 职位列表
export async function postAdminRecruitmentInformationSelectPosition(params) {
  return await httpClient.get({
    url: `/Admin/RecruitmentInformation/selectPosition`,
    params
  });
}

// 面试问题
export async function postAdminRecruitmentInformationGetQuestion(params) {
  return await httpClient.get({
    url: `/Admin/RecruitmentInformation/getQuestion`,
    params
  });
}


// 保存问题
export async function postAdminRecruitmentInformationaddQuestion(data) {
  return await httpClient.post({
    url: `/Admin/RecruitmentInformation/addQuestion`,
    data
  });
}
// 创建职位
export async function postAdminRecruitmentInformationaddPosition(data) {
  return await httpClient.post({
    url: `/Admin/RecruitmentInformation/addPosition`,
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  });
}
// 删除职位
export async function postAdminRecruitmentInformationdelPosition(data) {
  return await httpClient.post({
    url: `/Admin/RecruitmentInformation/delPosition`,
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  });
}


// 删除部门
export async function postAdminRecruitmentInformationdelDepartment(data) {
  return await httpClient.post({
    url: `/Admin/RecruitmentInformation/delDepartment`,
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  });
}

// DISC列表
export async function postAdminRecruitmentInformationSelectDISC() {
  return await httpClient.get({
    url: `/Admin/RecruitmentInformation/selectDISC`
  });
}


// 删除DISC问题
export async function postAdminRecruitmentInformationDelDISC(data) {
  return await httpClient.post({
    url: `/Admin/RecruitmentInformation/delDISC`,
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  });
}


// 新增DISC问题
export async function postAdminRecruitmentInformationAddDISC(data) {
  return await httpClient.post({
    url: `/Admin/RecruitmentInformation/AddDISC`,
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  });
}

// 申请增裁列表
export async function postAdminCodeGetshenqinglist(data) {
  return await httpClient.post({
    url: `/Admin/Code/getshenqinglist`,
    data
  });
}

// 运营处理漏补
export async function postAdminCodeUpdateshenqing(data) {
  return await httpClient.post({
    url: `/Admin/Code/updateshenqing`,
    data
  });
}

// 查看工厂用户身份信息
export async function postAdminCodeGetFactoryUserInfo(data) {
  return await httpClient.post({
    url: `/Admin/Code/getFactoryUserInfo`,
    data
  });
}

// 编辑工厂用户身份
export async function postAdminApiCodeSetFactoryUser(data) {
  return await httpClient.post({
    url: `/Admin/Code/setFactoryUser`,
    data
  });
}


// 面辅料列表
export async function postAdminCodeGetFabricMaintain(data) {
  return await httpClient.post({
    url: `/Admin/Code/getFabricMaintain`,
    data
  });
}


// 编辑面辅料
export async function postAdminCodeSetFabricMaintain(data) {
  return await httpClient.post({
    url: `/Admin/Code/setFabricMaintain`,
    data
  });
}

// 添加面辅料
export async function postAdminCodeAddFabricMaintain(data) {
  return await httpClient.post({
    url: `/Admin/Code/addFabricMaintain`,
    data
  });
}


// 删除面辅料
export async function postAdminCodeDelFabricMaintain(data) {
  return await httpClient.post({
    url: `/Admin/Code/delFabricMaintain`,
    data
  });
}



// 查看面辅料
export async function postAdminCodeGetFabricMaintainLook(data) {
  return await httpClient.post({
    url: `/Admin/Code/getFabricMaintainLook`,
    data
  });
}

// 职位列表
export async function postAdminUserGetpositionlist(data) {
  return await httpClient.post({
    url: `/Admin/User/getpositionlist`,
    data
  });
}


// 总加工单列表
export async function postAdminCodeGetpocessingcodelist(data) {
  return await httpClient.post({
    url: `/Admin/Code/getpocessingcodelist`,
    data
  });
}



// 批量设置身份
export async function postAdminUserSetpilianguser(data) {
  return await httpClient.post({
    url: `/Admin/User/setpilianguser`,
    data
  });
}

// 设置是否可生成
export async function postAdminCodeSetpocessingcodestatus(data) {
  return await httpClient.post({
    url: `/Admin/Code/setpocessingcodestatus`,
    data
  });
}

// 设置加工单为达播
export async function postAdminCodeSetpocessingDabo(data) {
    return await httpClient.post({
        url: `/Admin/Code/setProcessingDabo`,
        data
    });
}


// 出库列表
export async function postAdminCodeGetWarehouseList(data) {
  return await httpClient.post({
    url: `/Admin/Code/getWarehouseList`,
    data
  });
}

// 用户数-基础数据
export async function postAdminApigetUserNum(data) {
  return await httpClient.post({
    url: `/Admin/Api/getUserNum`,
    data
  });
}

// 用户数-更新基础数据
export async function postAdminApiSetUserNum(data) {
  return await httpClient.post({
    url: `/Admin/Api/setUserNum`,
    data
  });
}

// 离职管理
export async function postAdminUserGetdimission(data) {
  return await httpClient.post({
    url: `/Admin/User/getdimission`,
    data
  });
}


// 流程列表
export async function postAdminApiGetJointlystep(data) {
  return await httpClient.post({
    url: `/Admin/Api/getJointlystep`,
    data
  });
}

// 添加流程
export async function postAdminApiSetJointlystep(data) {
  return await httpClient.post({
    url: `/Admin/Api/setJointlystep`,
    data
  });
}

// 删除流程
export async function postAdminApiDelJointlystep(data) {
  return await httpClient.post({
    url: `/Admin/Api/delJointlystep`,
    data
  });
}

// 企划进度
export async function postAdminApiGetsuitlistspeed(data) {
  return await httpClient.post({
    url: `/Admin/Api/getsuitlistspeed`,
    data
  });
}


// 修改企划进度
export async function postAdminApiSetsuitlistspeed(data) {
  return await httpClient.post({
    url: `/Admin/Api/setsuitlistspeed`,
    data
  });
}


// 撤销企划进度
export async function postAdminApiSetrevokespeed(data) {
  return await httpClient.post({
    url: `/Admin/Api/setrevokespeed`,
    data
  });
}


// 根据款号获取sku
export async function postAdminApiCodeGetTypenoSku(data) {
  return await httpClient.post({
    url: `/Admin/Code/getTypenoSku`,
    data
  });
}


// 加工单面料确认列表
export async function postAdminApiCodeGetProcessingMaintainList(data) {
  return await httpClient.post({
    url: `/Admin/Code/getProcessingMaintainList`,
    data
  });
}


// 理单员确认面料
export async function postAdminApiCodeSetProcessingMaintainList(data) {
  return await httpClient.post({
    url: `/Admin/Code/setProcessingMaintainList`,
    data
  });
}


// 查看预警列表
export async function postAdminApiCodeGetWarningNoticeList(data) {
  return await httpClient.post({
    url: `/Admin/Code/get_warning_notice_list`,
    data
  });
}

// 获取合同列表
export async function postAdminPricingGetPricingContract(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getPricingContract`,
    data
  });
}


// 合同详情查看
export async function postAdminPricingLookPricingContract(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/lookPricingContract`,
    data
  });
}

// 提交合同审核
export async function postAdminPricingSubmitPricingContract(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/submitPricingContract`,
    data
  });
}

// 作废合同
export async function postAdminPricingAbandonedPricingContract(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/abandonedPricingContract`,
    data
  });
}

// 审核合同
export async function postAdminPricingExaminePricingContract(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/examinePricingContract`,
    data
  });
}

// 违约金/赔偿金
export async function postAdminPricingAddFineAmount(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/addFineAmount`,
    data
  });
}


// 合同款号列表
export async function postAdminPricingGetTypenoList(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getTypenoList`,
    data
  });
}

// 创建额外费用
export async function postAdminPricingAddAdditionalAmount(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/addAdditionalAmount`,
    data
  });
}

// 获取用途
export async function postAdminPricingGetPurposen(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getPurposen`,
    data
  });
}


// 违约金/赔偿金列表
export async function postAdminPricingGetFineAmountList(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getFineAmountList`,
    data
  });
}

// 审核违约金/赔偿金
export async function postAdminPricingExamineFineAmount(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/examineFineAmount`,
    data
  });
}

// 获取违约金/赔偿金原因
export async function postAdminPricingGetReason(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getReason`,
    data
  });
}

// 额外费用列表
export async function postAdminPricingGetAdditionalAmountList(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getAdditionalAmountList`,
    data
  });
}


// 额外费用审核
export async function postAdminPricingExamineAdditionalAmount(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/examineAdditionalAmount`,
    data
  });
}

// 预付款列表
export async function postAdminPricingGetAdvanceAmountList(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getAdvanceAmountList`,
    data
  });
}


// 创建预付款
export async function postAdminPricingAddAdvanceAmount(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/addAdvanceAmount`,
    data
  });
}


// 审核预付款
export async function postAdminPricingExamineAdvanceAmount(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/examineAdvanceAmount`,
    data
  });
}

// 提交预付款
export async function postAdminPricingPayAdvanceAmount(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/payAdvanceAmount`,
    data
  });
}


// 回货单列表
export async function postAdminPricingGetPurchaseinList(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getPurchaseinList`,
    data
  });
}



// 出库失败列表
export async function postAdminCodeGetWarehousing_data(data) {
  return await httpClient.post({
    url: `/Admin/code/getWarehousing_data`,
    data
  });
}

// 推送聚水潭
export async function postAdminCodeSetJushuitanPurchaseUpload_shou(data) {
  return await httpClient.post({
    url: `/Admin/Code/setJushuitanPurchaseUpload_shou`,
    data
  });
}


// 库存列表
export async function postAdminOperateGetamountdata(data) {
  return await httpClient.post({
    url: `/Admin/Operate/get_amount_data`,
    data
  });
}

// 有香库存列表
export async function postAdminOperateGetamountdatayx(data) {
  return await httpClient.post({
    url: `/Admin/Operate/get_amount_dateyx`,
    data
  });
}

// 编辑比例
export async function postAdminOperateSetskuproportion(data) {
  return await httpClient.post({
    url: `/Admin/Operate/set_sku_proportion`,
    data
  });
}

// 获取当前sku的比例
export async function postAdminOperateGetskuproportion(data) {
  return await httpClient.post({
    url: `/Admin/Operate/get_sku_proportion`,
    data
  });
}

// 工厂对账单列表
export async function postAdminPricingGetReconciliationOrderList(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getReconciliationOrderList`,
    data
  });
}

// 绣花暂估对账单列表
export async function postAdminPricingGetReconciliationOrderZGList(data) {
    return await httpClient.post({
        url: `/Admin/Pricing/getReconciliationOrderZGList`,
        data
    });
}

// 绣花暂估对账单列表--详情信息
export async function postAdminPricingGetReconciliationOrderZGDetailList(data) {
    return await httpClient.post({
        url: `/Admin/Pricing/getReconciliationOrderZGDetailList`,
        data
    });
}

// 绣花暂估对账单列表--推送
export async function postAdminPricingGetReconciliationOrderZGPushlList(data) {
    return await httpClient.post({
        url: `/Admin/Kingdee/pushReconciliationOrder_XHZG`,
        data
    });
}

// 绣花对账单列表--推送
export async function postAdminPricingGetReconciliationOrderXHPushlList(data) {
    return await httpClient.post({
        url: `/Admin/Kingdee/pushReconciliationOrder_XH`,
        data
    });
}

// 成衣对账单列表--推送
export async function postAdminPricingGetReconciliationOrderCYPushlList(data) {
    return await httpClient.post({
        url: `/Admin/Kingdee/pushReconciliationOrder_CY`,
        data
    });
}

// 回货单统计列表
export async function postAdminPricingGetPurchaseinListCount(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getPurchaseinListCount`,
    data
  });
}



// 绣花对账----回货数据
export async function postAdminPricingGetPurchaseinListCount_embroidery(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getPurchaseinListCount_embroidery`,
    data
  });
}
// 工厂/ 绣花对账----回货数据(11.11修改)
export async function postAdminPricingGetPurchaseinListCount_front(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getPurchaseinListCount_front`,
    data
  });
}
// 创建对账单
export async function postAdminPricingAddReconciliation(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/addReconciliation`,
    data
  });
}

// 下一步
export async function postAdminPricingNextStep(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/next_step`,
    data
  });
}


// 回货单查看详情
export async function postAdminPricingLookReconciliationOrder(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/lookReconciliationOrder`,
    data
  });
}

// 删除对账单
export async function postAdminPricingDelReconciliationOrder(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/delReconciliationOrder`,
    data
  });
}


// 审核对账单
export async function postAdminPricingExamineReconciliationOrder(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/examineReconciliationOrder`,
    data
  });
}


// 工序单列表
export async function postAdminPricingGetWorkingProcedure(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getWorkingProcedure`,
    data
  });
}

// 工序审核
export async function postAdminPricingExamineWorkingProcedure(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/examineWorkingProcedure`,
    data
  });
}

// 创建工序单
export async function postAdminPricingAddWorkingProcedure(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/addWorkingProcedure`,
    data
  });
}

// 更新库存
export async function postAdminOperateSet_amount_data(data) {
  return await httpClient.post({
    url: `/Admin/Operate/set_amount_data`,
    data
  });
}

// 成品加工单审核列表
export async function postAdminPricingGetPricingExamine(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getPricingExamine`,
    data
  });
}

// 核价单列表
export async function postAdminPricingGetPricingGetPricingOrder(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getPricingOrder`,
    data
  });
}

// 编辑实付核价
export async function postAdminPricingGetPricingSetPricingExamine(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/setPricingExamine`,
    data
  });
}

// 审核
export async function postAdminPricingGetPricingSetExaminePricing(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/setExaminePricing`,
    data
  });
}

// 提交
export async function postAdminPricingGetPricingSubmitExaminePricing(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/submitExaminePricing`,
    data
  });
}

// 更新加工单
export async function postAdminOperatesave_processing_order(data) {
  return await httpClient.post({
    url: `/Admin/Operate/save_processing_order`,
    data
  });
}


// 导出/打印 PDF
export async function postAdminPricingSetPdfExport(data) {
  return await httpClient.download({
    url: `/Admin/Pricing/setPdfExport`,
    method: "POST",
    data
  });
}

// 更新核价单
export async function postAdminPricingGet_shujia_PricingExamineOrder(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/get_shujia_PricingExamineOrder`,
    data
  });
}

// 更新成品加工核价审核
export async function postAdminPricingGet_shujia_PricingExamine(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/get_shujia_PricingExamine`,
    data
  });
}

// 核价单详情
export async function postAdminPricingGetPricingOrderDetail(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getPricingOrderDetail`,
    data
  });
}

// 更新回货单
export async function postAdminHomeSsySetJushuitanPurchasein_Query() {
  return await httpClient.get({
    url: `/Home/Ssy/setJushuitanPurchasein_Query`
  });
}

// 平台列表
export async function postAdminAdminOperateGet_platform_site() {
  return await httpClient.post({
    url: `/Admin/Operate/get_platform_site`
  });
}

// 验证款号是否正确
export async function postAdminAdminOperateVerificationTypeno(data) {
  return await httpClient.post({
    url: `/Admin/Operate/verificationTypeno`,
    data
  });
}

// 编辑到货日期
export async function postAdminAdminOperateSetArrivalDate(data) {
  return await httpClient.post({
    url: `/Admin/Operate/setArrivalDate`,
    data
  });
}

// 编辑银行
export async function postAdminCodeSetFactoryAccountNumber(data) {
  return await httpClient.post({
    url: `/Admin/code/setFactoryAccountNumber`,
    data
  });
}

// 编辑比例
export async function postAdminOperateSet_type_proportion(data) {
  return await httpClient.post({
    url: `/Admin/Operate/set_type_proportion`,
    data
  });
}

// 生成PDF合同
export async function postAdminPricingLookpdf(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/lookpdf`,
    data
  });
}

// 禁用/启用
export async function postAdminUserSetUserStatus(data) {
  return await httpClient.post({
    url: `/Admin/User/setUserStatus`,
    data
  });
}

// 无加工单的回货单列表
export async function postAdminPricingGetNoPurchaseinList(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getNoPurchaseinList`,
    data
  });
}

// 生产加工的验证
export async function postAdminPricingGetProcessing_code_you(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getProcessing_code_you`,
    data
  });
}

// 获取采购sku信息
export async function postAdminPricinggetPurchaseinDetail(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getPurchaseinDetail`,
    data
  });
}

// 保存加工单
export async function postAdminPricinggetaddProcessing_code(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/addProcessing_code`,
    data
  });
}

// 输入表名
export async function postAdminDelaySetTableNmae(data) {
  return await httpClient.post({
    url: `/Admin/Delay/setTableNmae`,
    data
  });
}

// 分组未发货数据
export async function postAdminDelayAdddata(data) {
  return await httpClient.post({
    url: `/Admin/Delay/adddata`,
    data
  });
}

// 统计未发货数量
export async function postAdminDelaySavedata(data) {
  return await httpClient.post({
    url: `/Admin/Delay/savedata`,
    data
  });
}

// 更新组合商品订单
export async function postAdminDelaySetCombine_Sku(data) {
  return await httpClient.post({
    url: `/Admin/Delay/setCombine_Sku`,
    data
  });
}

// 截取尺寸
export async function postAdminDelaySetsize(data) {
  return await httpClient.post({
    url: `/Admin/Delay/setsize`,
    data
  });
}

// 过滤新颜色编码
export async function postAdminDelaySetpiliangsizenenew(data) {
  return await httpClient.post({
    url: `/Admin/Delay/setpiliangsizenenew`,
    data
  });
}

// 过滤旧颜色编码
export async function postAdminDelaySetpiliangsize(data) {
  return await httpClient.post({
    url: `/Admin/Delay/setpiliangsize`,
    data
  });
}

// 替换中文【】
export async function postAdminDelaySetReplace(data) {
  return await httpClient.post({
    url: `/Admin/Delay/setReplace`,
    data
  });
}

// 摘出月份
export async function postAdminDelaySetpiliangmonth(data) {
  return await httpClient.post({
    url: `/Admin/Delay/setpiliangmonth`,
    data
  });
}


// 更新延期数
export async function postAdminDelaySaveamount(data) {
  return await httpClient.post({
    url: `/Admin/Delay/saveamount`,
    data
  });
}

// 更新延期数
export async function postAdminDelayLook_jst_wfh_table(data) {
  return await httpClient.post({
    url: `/Admin/Delay/look_jst_wfh_table`,
    data
  });
}

// 套装类别
export async function postAdminApiGetSuitCategory(data) {
  return await httpClient.post({
    url: `/Admin/Api/getSuitCategory`,
    data
  });
}

// 尺码类别
export async function postAdminApiGetSuitType(data) {
  return await httpClient.post({
    url: `/Admin/Api/getSuitType`,
    data
  });
}

// 尺码范围
export async function postAdminApiGetSuitRange(data) {
  return await httpClient.post({
    url: `/Admin/Api/getSuitRange`,
    data
  });
}

// 根据选择出尺码身高范围
export async function postAdminApiGetSuitRangeList(data) {
  return await httpClient.post({
    url: `/Admin/Api/getSuitRangeList`,
    data
  });
}

// 编辑推荐尺码
export async function postAdminApiSetSuitSize(data) {
  return await httpClient.post({
    url: `/Admin/Api/setSuitSize`,
    data
  });
}

// 上新表
export async function postAdminApiGetnew_products(data) {
  return await httpClient.post({
    url: `/Admin/Api/getnew_products`,
    data
  });
}

// 查看推荐尺码
export async function postAdminApiLookSuitSize(data) {
  return await httpClient.post({
    url: `/Admin/Api/lookSuitSize`,
    data
  });
}

// 编辑 款名/指数/状态
export async function postAdminApiSetSuitRange(data) {
  return await httpClient.post({
    url: `/Admin/Api/setSuitRange`,
    data
  });
}

// 营销部编辑
export async function postAdminApiSetMarketingData(data) {
  return await httpClient.post({
    url: `/Admin/Api/setMarketingData`,
    data
  });
}

// 设计部编辑
export async function postAdminApiSetDesign_Department(data) {
  return await httpClient.post({
    url: `/Admin/Api/setDesign_Department`,
    data
  });
}

// 产品部编辑
export async function postAdminApiSetProduct_department(data) {
  return await httpClient.post({
    url: `/Admin/Api/setProduct_department`,
    data
  });
}

// 上新表更新
export async function postAdminPricingGet_shujia_NewProducts(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/get_shujia_NewProducts`,
    data
  });
}

// 采购单修正
export async function postAdminPricingSetPurchaseinOrder(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/setPurchaseinOrder`,
    data
  });
}

// 设置上新年月
export async function postAdminApiSetNew_products_save(data) {
  return await httpClient.post({
    url: `/Admin/Api/setNew_products_save`,
    data
  });
}

// 上新结束
export async function postAdminApiSetNew_products_end(data) {
  return await httpClient.post({
    url: `/Admin/Api/setNew_products_end`,
    data
  });
}

// 获取上新年月
export async function postAdminApiGetNew_products_save(data) {
  return await httpClient.post({
    url: `/Admin/Api/getNew_products_save`,
    data
  });
}


// 更新延期任务列表
export async function postAdminDelayGet_jst_wfh_table(data) {
  return await httpClient.post({
    url: `/Admin/Delay/get_jst_wfh_table`,
    data
  });
}

// 绣花统计选中的回货单数量和金额
export async function postAdminPricingAddReconciliation_total(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/addReconciliation_total`,
    data
  });
}

// 加工厂统计选中的回货单数量和金额
export async function postAdminPricingAddReconciliation_total_new(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/addReconciliation_total_new`,
    data
  });
}

// 编辑标签
export async function postAdminOperateEditLabel(data) {
  return await httpClient.post({
    url: `/Admin/Operate/editLabel`,
    data
  });
}

// 用户列表
export async function postAdminUserUserlist(data) {
  return await httpClient.post({
    url: `/Admin/User/userlist`,
    data
  });
}

// 删除标签
export async function postAdminOperateDelLabel(data) {
  return await httpClient.post({
    url: `/Admin/Operate/delLabel`,
    data
  });
}

// 标签列表
export async function postAdminOperateGetLabelList(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getLabelList`,
    data
  });
}

// 商品列表
export async function postAdminOperateGetProductslist(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getProductslist`,
    data
  });
}


// 标签详情
export async function postAdminOperateGetLabelLook(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getLabelLook`,
    data
  });
}

// 形制列表
export async function postAdminOperateGetfromlist(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getfromlist`,
    data
  });
}

// 商品详情（款）
export async function postAdminOperateGetProductsLook(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getProductsLook`,
    data
  });
}

// 商品详情（套）
export async function postAdminOperateGetProductsLook_tao(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getProductsLook_tao`,
    data
  });
}

// 标签搜索
export async function postAdminOperateGetLabelsearch(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getLabelsearch`,
    data
  });
}

// 标签列表
export async function postAdminOperateGetProductsLabellist(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getProductsLabellist`,
    data
  });
}

// 确定编辑标签（款）
export async function postAdminOperateSetProductsLabel(data) {
  return await httpClient.post({
    url: `/Admin/Operate/setProductsLabel`,
    data
  });
}

// 确定编辑标签（套）
export async function postAdminOperateSetProductsLabel_new(data) {
  return await httpClient.post({
    url: `/Admin/Operate/setProductsLabel_new`,
    data
  });
}


// 返修退款列表
export async function postAdminPricingGetRepairRefundList(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getRepairRefundList`,
    data
  });
}

// 创建返修退款数据
export async function postAdminPricingEditRepairRefund(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/editRepairRefund`,
    data
  });
}

// 回货单数据设置延期
export async function postAdminPricingSetPurchaseinList(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/setPurchaseinList`,
    data
  });
}

// 菜品列表
export async function postAdminUserGet_food_list(data) {
  return await httpClient.post({
    url: `/Admin/User/get_food_list`,
    data
  });
}

// 编辑菜品
export async function postAdminUserSet_food_list(data) {
  return await httpClient.post({
    url: `/Admin/User/set_food_list`,
    data
  });
}

// 汇总
export async function postAdminUserGetuserordertotal(data) {
  return await httpClient.post({
    url: `/Admin/User/getuserordertotal`,
    data
  });
}

// 添补
export async function postAdminUserSetSupplementFloor(data) {
  return await httpClient.post({
    url: `/Admin/User/setSupplementFloor`,
    data
  });
}

// 合同列表绣花
export async function postAdminPricingGetEmbroideryContract(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getEmbroideryContract`,
    data
  });
}


// 获取审批节点详情
export async function postAdminPricingGetApproval_example(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getApproval_example`,
    data
  });
}

// 获取审批数据详情
export async function postAdminPricingGetdatalook(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getdatalook`,
    data
  });
}

// 审批
export async function postAdminPricingPassApproval_example(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/PassApproval_example`,
    data
  });
}

// 评论
export async function postAdminPricingCommnetApproval_example(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/commnetApproval_example`,
    data
  });
}


// 飞书鉴权
export async function postAdminPricingGet_FeshiJSAPI(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/get_FeshiJSAPI`,
    data
  });
}

// 飞书登录
export async function postAdminPricingSetNologin(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/setNologin`,
    data
  });
}
// 飞书H5登录
export async function postAdminPricingSetNologin_web(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/setNologin_web`,
    data
  });
}

// 产品汇总表
export async function postAdminOperateGetProducts_house(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getProducts_house`,
    data
  });
}

// 产品汇总表编辑
export async function postAdminOperateSetHumanplatform(data) {
  return await httpClient.post({
    url: `/Admin/Operate/setHumanplatform`,
    data
  });
}

// 点餐名单记录
export async function postAdminUserGetuserorderlist(data) {
  return await httpClient.post({
    url: `/Admin/User/getuserorderlist`,
    data
  });
}

// 开通e签宝
export async function postAdminPricingOpen_eqb(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/Open_eqb_kz`,
    data
  });
}

// 销售订单列表
export async function postAdminOperateGet_operate_order(data) {
  return await httpClient.post({
    url: `/Admin/Operate/get_operate_order`,
    data
  });
}

// 销售订单详情
export async function postAdminOperateGet_operate_order_look(data) {
  return await httpClient.post({
    url: `/Admin/Operate/get_operate_order_look`,
    data
  });
}

// 销售订单表格导入
export async function uploadAdminExcelImport_sale_date(file, appendDatas) {
  return await httpClient.upload({
    url: `/Admin/Excel/Import_sale_date`,
    fileObject: file,
    fileName: "file",
    appendDatas
  });
}


// 合同详情
export async function getAdminPricingGetdatalook(params) {
  return await httpClient.get({
    url: `/Admin/Pricing/getdatalook`,
    params
  });
}

// OKR配置设置
export async function postHomeWarehouseReservationText(data) {
  return await httpClient.post({
    url: `/Home/WarehouseReservation/text`,
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  });
}

// OKR配置展示
export async function getHomeWarehouseReservationList(params) {
  return await httpClient.get({
    url: `/Home/WarehouseReservation/list`,
    params
  });
}

// OKR配置展示
export async function postAdminOtherGetcostprice(data) {
  return await httpClient.post({
    url: `/Admin/Other/getcostprice`,
    data
  });
}

// 非售卖商品维护列表
export async function postAdminOperateGetOrtherProduct(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getOrtherProduct`,
    data
  });
}

// 非售卖商品维护编辑
export async function postAdminOperateSaveOrtherProduct(data) {
  return await httpClient.post({
    url: `/Admin/Operate/saveOrtherProduct`,
    data
  });
}

// 非售卖商品维护详情
export async function postAdminOperateLookOrtherProduct(data) {
  return await httpClient.post({
    url: `/Admin/Operate/lookOrtherProduct`,
    data
  });
}

// 非售卖商品维护删除
export async function postAdminOperateDelOrtherProduct(data) {
  return await httpClient.post({
    url: `/Admin/Operate/delOrtherProduct`,
    data
  });
}

// 非售卖商品维护禁|启用
export async function postAdminOperateDisablEOrtherProduct(data) {
  return await httpClient.post({
    url: `/Admin/Operate/disablEOrtherProduct`,
    data
  });
}


// 手动发起合同签署
export async function postAdminPricingAutosignflows_shoudong(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/autosignflows_shoudong`,
    data
  });
}

// 面料维护列表
export async function postAdminPricingGetFabricList(data) {
  return await httpClient.post({
    url: `/Admin/Production/getFabricList`,
    data
  });
}

// 面料维护编辑
export async function postAdminPricingSaveFabric(data) {
  return await httpClient.post({
    url: `/Admin/Production/saveFabric`,
    data
  });
}


// 面料维护删除
export async function postAdminPricingDelFabric(data) {
  return await httpClient.post({
    url: `/Admin/Production/delFabric`,
    data
  });
}

// 面料维护查看
export async function postAdminPricingLookFabric(data) {
  return await httpClient.post({
    url: `/Admin/Production/lookFabric`,
    data
  });
}

// 面料维护禁用启用
export async function postAdminProductionDisablEOrtherProduct(data) {
  return await httpClient.post({
    url: `/Admin/Production/disableFabric`,
    data
  });
}

// 获取签署地址
export async function postAdminPricingGetSignUrl(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getSignUrl`,
    data
  });
}

// 部位列表
export async function postAdminOperateGetPosition(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getPosition`,
    data
  });
}

// 部位详情
export async function postAdminOperateLookPosition(data) {
  return await httpClient.post({
    url: `/Admin/Operate/lookPosition`,
    data
  });
}

// 部位编辑
export async function postAdminOperateSetPosition(data) {
  return await httpClient.post({
    url: `/Admin/Operate/setPosition
    `,
    data
  });
}

// 部位禁|启用
export async function postAdminOperateDisablePosition(data) {
  return await httpClient.post({
    url: `/Admin/Operate/disablePosition`,
    data
  });
}

// 基码列表
export async function postAdminOperateGetBasecode(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getBasecode`,
    data
  });
}

// 基码详情
export async function postAdminOperateLookBasecode(data) {
  return await httpClient.post({
    url: `/Admin/Operate/lookBasecode`,
    data
  });
}

// 基码编辑
export async function postAdminOperateSetBasecode(data) {
  return await httpClient.post({
    url: `/Admin/Operate/setBasecode`,
    data
  });
}

// 基码禁|启用
export async function postAdminOperateDisableBasecode(data) {
  return await httpClient.post({
    url: `/Admin/Operate/disableBasecode`,
    data
  });
}

// 部位尺码参数
export async function postAdminOperateGetSize(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getSize`,
    data
  });
}


// 部位尺码编辑
export async function postAdminOperateSetSize(data) {
  return await httpClient.post({
    url: `/Admin/Operate/setSize`,
    data
  });
}

// 部位尺码禁|启用
export async function postAdminOperateDisableSize(data) {
  return await httpClient.post({
    url: `/Admin/Operate/delSize`,
    data
  });
}

// 部位尺码删除
export async function postAdminOperateDelSize(data) {
  return await httpClient.post({
    url: `/Admin/Operate/delSize`,
    data
  });
}


// 方案列表
export async function postAdminOperateGetProgramme(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getProgramme`,
    data
  });
}

// 方案详情
export async function postAdminOperateLookProgramme(data) {
  return await httpClient.post({
    url: `/Admin/Operate/lookProgramme
    `,
    data
  });
}

// 方案编辑
export async function postAdminOperateSetProgramme(data) {
  return await httpClient.post({
    url: `/Admin/Operate/setProgramme`,
    data
  });
}

// 方案禁|启用
export async function postAdminOperateDisableProgramme(data) {
  return await httpClient.post({
    url: `/Admin/Operate/disableProgramme`,
    data
  });
}

// 尺码表列表
export async function postAdminOperateGetProductsSize(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getProductsSize`,
    data
  });
}

// 尺码表详情
export async function postAdminOperateLook_new_products_plank_house(data) {
  return await httpClient.post({
    url: `/Admin/Operate/look_new_products_plank_house`,
    data
  });
}

// 尺码表提交
export async function postAdminOperateSet_new_products_plank_house(data) {
  return await httpClient.post({
    url: `/Admin/Operate/set_new_products_plank_house`,
    data
  });
}


// 根据选择的服装类和方案 出列表参数
export async function postAdminOperateGetSelectedBase(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getSelectedBase`,
    data
  });
}

// 一键 开启/禁用 disc
export async function postAdminRecruitmentInformationOnekeyPositionDisc(data) {
  return await httpClient.post({
    url: `/Admin/RecruitmentInformation/OnekeyPositionDisc`,
    data
  });
}


// 工艺单查看
export async function postAdminOperateLookProcess_sheet(data) {
  return await httpClient.post({
    url: `/Admin/Operate/lookProcess_sheet`,
    data
  });
}

// 工艺单编辑
export async function postAdminOperateSetProcess_sheet(data) {
  return await httpClient.post({
    url: `/Admin/Operate/setProcess_sheet`,
    data
  });
}

// 文件列表
export async function postAdminOperateLook_sealed_sample(data) {
  return await httpClient.post({
    url: `/Admin/Operate/look_sealed_sample`,
    data
  });
}

// 文件列表
export async function postAdminOperateAdd_sealed_sample(data) {
  return await httpClient.post({
    url: `/Admin/Operate/add_sealed_sample`,
    data
  });
}

// 文件编辑
export async function postAdminOperateSet_sealed_sample(data) {
  return await httpClient.post({
    url: `/Admin/Operate/set_sealed_sample`,
    data
  });
}

// 锁定
export async function postAdminOperateSetlocking(data) {
  return await httpClient.post({
    url: `/Admin/Operate/setlocking`,
    data
  });
}

// 对账单支付
export async function postAdminPricingPayReconciliationOrder(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/payReconciliationOrder`,
    data
  });
}
// OKR数据详情
export async function postHomeWarehouseReservationGetListByCondition(data) {
  return await httpClient.post({
    url: `/Home/WarehouseReservation/getListByCondition`,
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  });
}
// 时间展示
export async function postHomeWarehouseReservationTimeList(data) {
  return await httpClient.post({
    url: `/Home/WarehouseReservation/timeList`,
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  });
}

// 展示ABCD评级
export async function postHomeObjectivePj(data) {
  return await httpClient.post({
    url: `/Home/Objective/pj`,
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  });
}

// 部门下拉
export async function postHomeObjectiveD_list(data) {
  return await httpClient.post({
    url: `/Home/Objective/d_list`,
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  });
}

// Objective列表
export async function postHomeObjectiveShow(data) {
  return await httpClient.post({
    url: `/Home/Objective/show`,
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  });
}

// okr看板数据
export async function postHomeObjectiveGetCount(data) {
  return await httpClient.post({
    url: `/Home/Objective/getCount`,
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  });
}

// okr看板数据下面的柱状图
export async function postHomeObjectiveThree_detail(data) {
  return await httpClient.post({
    url: `/Home/Objective/three_detail`,
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  });
}

// 复盘详情
export async function postHomeObjectiveDetail_rating(data) {
  return await httpClient.post({
    url: `/Home/Objective/detail_rating`,
    data: qs.stringify(data),
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    }
  });
}

// 技术资料启用
export async function postAdminOperateEnable_sealed_sample(data) {
  return await httpClient.post({
    url: `/Admin/Operate/enable_sealed_sample`,
    data
  });
}

// 吊牌列表
export async function postAdminCodeGetTag(data) {
  return await httpClient.post({
    url: `/Admin/code/getTag`,
    data
  });
}

// 吊牌添加
export async function postAdminCodeAddTag(data) {
  return await httpClient.post({
    url: `/Admin/code/addTag`,
    data
  });
}

// 吊牌修改
export async function postAdminCodeSetTag(data) {
  return await httpClient.post({
    url: `/Admin/code/setTag`,
    data
  });
}

// 吊牌详情
export async function postAdminCodeGetTagLook(data) {
  return await httpClient.post({
    url: `/Admin/code/getTagLook`,
    data
  });
}

// 吊牌删除
export async function postAdminCodeDelTag(data) {
  return await httpClient.post({
    url: `/Admin/code/delTag`,
    data
  });
}

// 吊牌确认列表
export async function postAdminCodeGetProcessingTagList(data) {
  return await httpClient.post({
    url: `/Admin/code/getProcessingTagList`,
    data
  });
}

// 吊牌确认
export async function postAdminCodesetProcessingTagList(data) {
  return await httpClient.post({
    url: `/Admin/code/setProcessingTagList`,
    data
  });
}

// 设计档案列表
export async function postAdminOperategetTypeList(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getTypeList`,
    data
  });
}

// 设计档案详情
export async function postAdminOperategetTypeDetail(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getTypeDetail`,
    data
  });
}

// 推送oms
export async function postAdminOmsaddProduct(data) {
  return await httpClient.post({
    url: `/Admin/Oms/addProduct`,
    data
  });
}


// 推送采购单（加工单）
export async function postAdminOmsaddWarehousingProcessing(data) {
  return await httpClient.post({
    url: `/Admin/Oms/addWarehousingProcessing`,
    data
  });
}


// 取消推送采购单（加工单）
export async function postAdminOmscancelProcessing(data) {
  return await httpClient.post({
    url: `/Admin/Oms/cancelProcessing`,
    data
  });
}


// 推送加工厂
export async function postAdminOmsaddSupplier_synchronize(data) {
  return await httpClient.post({
    url: `/Admin/Oms/addSupplier_synchronize`,
    data
  });
}

// 套装列表
export async function postAdminOperateGetSuitList(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getSuitList`,
    data
  });
}

// 套装详情
export async function postAdminOperateGetSuitListDetail(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getSuitListDetail`,
    data
  });
}

// 创建组合商品
export async function postAdminOperateAddPortfolioGoods(data) {
  return await httpClient.post({
    url: `/Admin/Operate/addPortfolioGoods`,
    data
  });
}

// 组合商品列表
export async function postAdminOperateGetZhstyle(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getZhstyle`,
    data
  });
}

// 组合商品详情
export async function postAdminOperateGetZhstyleDetail(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getZhstyleDetail`,
    data
  });
}

// 组合商品编辑
export async function postAdminOperateSteZhstyleDetail(data) {
  return await httpClient.post({
    url: `/Admin/Operate/steZhstyleDetail`,
    data
  });
}

// 组合商品同步
export async function postAdminOperateSerSynchronization(data) {
  return await httpClient.post({
    url: `/Admin/Operate/serSynchronization`,
    data
  });
}

// 预售计划列表
export async function postAdminOperateGetPreSaleList(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getPreSaleList`,
    data
  });
}

// 颜色
export async function postAdminOperateGetStyleColour(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getStyleColour`,
    data
  });
}

// 绣花BOM
export async function postAdminOperateGetEmbroideBom(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getEmbroideBom`,
    data
  });
}

// SKU
export async function postAdminOperateGetStyleSku(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getStyleSku`,
    data
  });
}

// SKC
export async function postAdminOperateGetStyleSkc(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getStyleSkc`,
    data
  });
}

// 物料清单
export async function postAdminOperateGetMaterialList(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getMaterialList`,
    data
  });
}

//修改缩水率
export async function postAdminOperateUpdateSR(data) {
  return await httpClient.post({
    url: `/Admin/Operate/updateSR`,
    data
  });
}

// 大货bom
export async function postAdminOperateGetBomlList(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getBomlList`,
    data
  });
}

// 获取加工单下的sku
export async function postAdminOmsGetProType(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getProType`,
    data
  });
}

// 创建采购退货单
export async function postAdminOmsSetPurchaseReturn(data) {
  return await httpClient.post({
    url: `/Admin/Oms/setPurchaseReturn`,
    data
  });
}

// 采购退货单列表
export async function postAdminOmsGetPurchaseReturnList(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getPurchaseReturnList`,
    data
  });
}

// 调拨单列表
export async function postAdminOmsGetAllocationList(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocationList`,
    data
  });
}
// 获取调拨款号
export async function postAdminOmsGetAllocationType(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocationType`,
    data
  });
}

// 创建调拨单
export async function postAdminOmsSetAllocation(data) {
  return await httpClient.post({
    url: `/Admin/Oms/setAllocation`,
    data
  });
}

// 图库
export async function postAdminOperateGetStyleImgList(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getStyleImgList`,
    data
  });
}

// 日志
export async function postAdminOperateGetLogList(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getLogList`,
    data
  });
}

// 附件
export async function postAdminOperateGetAnnexList(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getAnnexList`,
    data
  });
}

// 编辑运营套名/商品短名/品类
export async function postAdminOperateSetpackage_number(data) {
  return await httpClient.post({
    url: `/Admin/Operate/setpackage_number`,
    data
  });
}

// 下载
export async function postAdminOperateDownlond_sealed_sample(data) {
  return await httpClient.post({
    url: `/Admin/Operate/downlond_sealed_sample`,
    data
  });
}

// 取消调拨
export async function postAdminAdminOmsCancelAllocation(data) {
  return await httpClient.post({
    url: `/Admin/Oms/cancelAllocation`,
    data
  });
}

// 结案
export async function postAdminCodeSetpocessingFstatus(data) {
  return await httpClient.post({
    url: `/Admin/Code/setpocessingFstatus`,
    data
  });
}

// 订单进度
export async function postAdminOperateGetoperation_order(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getoperation_order`,
    data
  });
}

// 抖音组合库存
export async function postAdminOperateGetItemsQuery(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getItemsQuery`,
    data
  });
}

// 组合库存
export async function postAdminOperateGetItemsQueryData(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getItemsQueryData`,
    data
  });
}

// 订单列表
export async function postApiAdminOrderIndex(data) {
  return await httpClient.get({
    url: `/api/admin/order/index`,
    data
  });
}
// 库存导出
export async function postAdminExcelGetStockexport(data) {
  return await httpClient.upload({
    url: `/Admin/Excel/getStockexport`
  });
}

// 面料类型列表
export async function postAdminProductionGettypes(data) {
  return await httpClient.post({
    url: `/Admin/Production/gettypes`
  });
}

// 调拨统计列表
export async function postAdminOmsgetAllocationtjllist(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocationtjllist`,
    data
  });
}

// 快递公司列表
export async function postAdminOmsgetlogisticsCompanyCode(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getlogisticsCompanyCode`,
    data
  });
}

// 调拨详情
export async function postAdminOmsgetAllocationtdetail(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocationtdetail`,
    data
  });
}

// 仓库地址
export async function postAdminOmsgetWarehouseaddress(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getWarehouseaddress`,
    data
  });
}

// 调拨统计列表——全
export async function postAdminOmsgetAllocationtjAllllist(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocationtjAllllist`,
    data
  });
}

// 关闭借出
export async function postAdminOmssetAllocationtcclose(data) {
  return await httpClient.post({
    url: `/Admin/Oms/setAllocationtcclose`,
    data
  });
}

// 归还列表
export async function postAdminOmsgetWarehousereturn(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getWarehousereturn`,
    data
  });
}

// 类别统计
export async function postAdminOmsgettongji(data) {
  return await httpClient.post({
    url: `/Admin/Oms/gettongji`,
    data
  });
}

// 编辑报次数
export async function postAdminProductionSaveBaonumber(data) {
  return await httpClient.post({
    url: `/Admin/Production/saveBaonumber`,
    data
  });
}

// 报错返回列表
export async function postAdminCrontabGetcrontab_errlist(data) {
  return await httpClient.post({
    url: `/Admin/Crontab/getcrontab_errlist`,
    data
  });
}

// 加工单导出 ——入库数
export async function postAdminExcelProcessingWeiruku(data) {
  return await httpClient.post({
    url: `/Admin/Excel/processingWeiruku`,
    data
  });
}

// 调拨统计列表——全
export async function postAdminOmsGetAllocationtjAllllist(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocationtjAllllist`,
    data
  });
}

// 内购列表——个人
export async function postAdminOmsGetAllocationipurchasellist(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocationipurchasellist`,
    data
  });
}

// 内购列表——全员
export async function postAdminOmsGetAllocationipurchaselAlllist(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocationipurchaselAlllist`,
    data
  });
}


// 内购列表-客服
export async function postAdminOmsGetAllocationtjAllllist_kefu(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocationtjAllllist_kefu`,
    data
  });
}

// 创建内购单
export async function postAdminOmsSetAllocation_ipurchase(data) {
  return await httpClient.post({
    url: `/Admin/Oms/setAllocation_ipurchase`,
    data
  });
}

// 面料类型列表
export async function postAdminProductionGettypeslist(data) {
  return await httpClient.post({
    url: `/Admin/Production/gettypeslist`,
    data
  });
}

// 飞书access_token_web
export async function postAdminFeiShugetaccess_token_web(data) {
  return await httpClient.post({
    url: `/Admin/FeiShu/getaccess_token_web`,
    data
  });
}
// 内购详情
export async function postAdminOmsgetAllocation_ipurchase(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocation_ipurchase`,
    data
  });
}

// 继续发起申请
export async function postAdminOmsSetAllocation_open(data) {
  return await httpClient.post({
    url: `/Admin/Oms/setAllocation_open`,
    data
  });
}

// 批量发起审批
export async function postAdminOmsSetAllocation_batch(data) {
  return await httpClient.post({
    url: `/Admin/Oms/setAllocation_batch`,
    data
  });
}

// 借赠推送巨沃
export async function postAdminOmspushjw_allocation(data) {
  return await httpClient.post({
    url: `/Admin/Oms/pushjw_allocation`,
    data
  });
}

// 获取导入的表格数据
export async function postAdminOmsgetAllocationExcel(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocationExcel`,
    data
  });
}

// 创建封样报告
export async function postAdminOperateset_sealed_sample_report(data) {
  return await httpClient.post({
    url: `/Admin/Operate/set_sealed_sample_report`,
    data
  });
}

// 封样报告列表
export async function postAdminOperateget_sealed_sample_report_list(data) {
  return await httpClient.post({
    url: `/Admin/Operate/get_sealed_sample_report_list`,
    data
  });
}

// 封样报告详情
export async function postAdminOperateget_sealed_sample_report_detail(data) {
  return await httpClient.post({
    url: `/Admin/Operate/get_sealed_sample_report_detail`,
    data
  });
}

// 封样报告拒绝
export async function postAdminOperateset_sealed_sample_report_refuse(data) {
  return await httpClient.post({
    url: `/Admin/Operate/set_sealed_sample_report_refuse`,
    data
  });
}

// 封样报告通过
export async function postAdminOperateset_sealed_sample_report_pass(data) {
  return await httpClient.post({
    url: `/Admin/Operate/set_sealed_sample_report_pass`,
    data
  });
}

// 编辑吊牌编号
export async function postAdmincodesetFactoryTag(data) {
  return await httpClient.post({
    url: `/Admin/code/setFactoryTag`,
    data
  });
}

// 批次列表
export async function postAdminOperateGetbatch(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getbatch`,
    data
  });
}


// 批次编辑
export async function postAdminOperateSetbatch(data) {
  return await httpClient.post({
    url: `/Admin/Operate/setbatch`,
    data
  });
}

// 批次编辑
export async function postAdminOperateDelbatch(data) {
  return await httpClient.post({
    url: `/Admin/Operate/delbatch`,
    data
  });
}


// 批次设置
export async function postAdminOperateSetprocess_batch(data) {
  return await httpClient.post({
    url: `/Admin/Operate/setprocess_batch`,
    data
  });
}

// 吊牌预览
export async function postAdminCodeGetTagLook_preview(data) {
  return await httpClient.post({
    url: `/Admin/Code/getTagLook_preview`,
    data
  });
}

// 获取最近的四个批次
export async function postAdminOperateGet_lately_batch(data) {
  return await httpClient.post({
    url: `/Admin/Operate/get_lately_batch`,
    data
  });
}

// 获取 执行标准/安全类别
export async function postAdminCodeGetTagcategory(data) {
  return await httpClient.post({
    url: `/Admin/Code/getTagcategory`,
    data
  });
}

// 加工单增裁
export async function postAdminCodeSetshenqing(data) {
  return await httpClient.post({
    url: `/Admin/Code/setshenqing`,
    data
  });
}


// 定时任务列表
export async function postAdminCrontabGetCrontabList(data) {
  return await httpClient.post({
    url: `/Admin/Crontab/getCrontabList`,
    data
  });
}

// 根据款号获取sku(非销售商品)
export async function postAdminProductionGetOrtherTypenoSku(data) {
  return await httpClient.post({
    url: `/Admin/Production/getOrtherTypenoSku`,
    data
  });
}

// 编辑（创建）加工单
export async function postAdminProductionaddprocessing(data) {
  return await httpClient.post({
    url: `/Admin/Production/addprocessing`,
    data
  });
}

// 非销售商品加工单详情
export async function postAdminProductionlookprocessing(data) {
  return await httpClient.post({
    url: `/Admin/Production/lookprocessing`,
    data
  });
}

// 删除加工单下的sku
export async function postAdminProductiondelprocessingsku(data) {
  return await httpClient.post({
    url: `/Admin/Production/delprocessingsku`,
    data
  });
}


// 对账前批量提交价格无异动的核价
export async function postAdminPricingPiliangsetExaminePricing(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/piliangsetExaminePricing`,
    data
  });
}

// 纯库存
export async function postAdminOperateget_jyamout(data) {
  return await httpClient.post({
    url: `/Admin/Operate/get_jyamout`,
    data
  });
}

// 样衣耗时
export async function postAdminOperateGetSample_garment(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getSample_garment`,
    data
  });
}

// 新品预排
export async function postAdminOperategetnew_products_arrangement(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getnew_products_arrangement`,
    data
  });
}

// 预排列表
export async function postAdminOperategetnewarrangement(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getnewarrangement`,
    data
  });
}

// 导出任列表
export async function postAdminExcelexcel_task_list(data) {
  return await httpClient.post({
    url: `/Admin/Excel/excel_task_list`,
    data
  });
}


// 创建导出任务
export async function postAdminExcelCreate_excel_task(data) {
  return await httpClient.post({
    url: `/Admin/Excel/create_excel_task`,
    data
  });
}

// 颜色码异常
export async function postAdminOperategetstylecolour_list(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getstylecolour_list`,
    data
  });
}

// 禁用|作废 加工单
export async function postAdminCodegetprocessing_to_void(data) {
  return await httpClient.post({
    url: `/Admin/Code/getprocessing_to_void`,
    data
  });
}

// 禁用|作废 工厂
export async function postAdminCodeSetFactoryinfotovoid(data) {
  return await httpClient.post({
    url: `/Admin/code/setFactoryinfotovoid`,
    data
  });
}

// 禁用|作废 工厂用户
export async function postAdminCodeSetUserInfotovoid(data) {
  return await httpClient.post({
    url: `/Admin/code/setUserInfotovoid`,
    data
  });
}


// 新增 | 编辑  工厂
export async function postAdmincodesetFactoryinfo(data) {
  return await httpClient.post({
    url: `/Admin/code/setFactoryinfo`,
    data
  });
}


// 借出可转内购列表
export async function postAdminOmsGetsAllocation_ipurchase(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getsAllocation_ipurchase`,
    data
  });
}

// 借出收货人信息
export async function postAdminOmsGetsAllocation_ipurchaseuserinfo(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getsAllocation_ipurchaseuserinfo`,
    data
  });
}

// 转内购列表
export async function postAdminOmsGetWarehouseTransfer(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getWarehouseTransfer`,
    data
  });
}

// 推送吊牌还有面料等到巨沃
export async function postAdminOmsPushProjw(data) {
  return await httpClient.post({
    url: `/Admin/Oms/pushProjw`,
    data
  });
}

// 工厂统计
export async function postAdminOperategetfactory_total(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getfactory_total`,
    data
  });
}

// 工厂统计对比
export async function postAdminOperategetfactory_total_contrast(data) {
  return await httpClient.post({
    url: `/Admin/Operate/getfactory_total_contrast`,
    data
  });
}

// 运营订单列表
export async function postAdminOperateget_export_order_list(data) {
  return await httpClient.post({
    url: `/Admin/Operate/get_export_order_list`,
    data
  });
}

// 选择款式颜色
export async function postAdminOperategettypecolor(data) {
  return await httpClient.post({
    url: `/Admin/Operate/gettypecolor`,
    data
  });
}

// 选择款式尺码
export async function postAdminOperategettypesize(data) {
  return await httpClient.post({
    url: `/Admin/Operate/gettypesize`,
    data
  });
}

// 运营订单详情
export async function postAdminOperateget_export_order_detail(data) {
  return await httpClient.post({
    url: `/Admin/Operate/get_export_order_detail`,
    data
  });
}


// 运营订单保存
export async function postAdminOperatesetconfirm(data) {
  return await httpClient.post({
    url: `/Admin/Operate/setconfirm`,
    data
  });
}

// 运营订单锁定
export async function postAdminOperatesave_export_order_locking(data) {
  return await httpClient.post({
    url: `/Admin/Operate/save_export_order_locking`,
    data
  });
}

// 批发单列表 （个人）
export async function postAdminOmsgetAllocation_wholesalelist(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocation_wholesalelist`,
    data
  });
}

// 创建批发
export async function postAdminOmssetAllocation_wholesale(data) {
  return await httpClient.post({
    url: `/Admin/Oms/setAllocation_wholesale`,
    data
  });
}

// 批发单列表 (全员)
export async function postAdminOmsgetAllocation_wholesale_alllist(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocation_wholesale_alllist`,
    data
  });
}

// 批发详情
export async function postAdminOmsgetAllocation__wholesale(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocation__wholesale`,
    data
  });
}

// 报次列表 （个人）
export async function postAdminOmsgetAllocation_reporting_timeslist(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocation_reporting_timeslist`,
    data
  });
}
// 报次列表 （全员）
export async function postAdminOmsgetAllocation_reporting_times_alllist(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocation_reporting_times_alllist`,
    data
  });
}

// 创建报次单
export async function postAdminOmssetAllocation_reporting_times(data) {
  return await httpClient.post({
    url: `/Admin/Oms/setAllocation_reporting_times`,
    data
  });
}

// 报次详情
export async function postAdminOmsgetAllocation__reporting_times(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocation__reporting_times`,
    data
  });
}

// 编辑|删除 推码图
export async function postAdminOperateProcess_sheet_tuimaing(data) {
  return await httpClient.post({
    url: `/Admin/Operate/Process_sheet_tuimaing`,
    data
  });
}


// 借出转赠送 | 赠送转归还
export async function postAdminOmsSetAllocation_transfer(data) {
  return await httpClient.post({
    url: `/Admin/Oms/setAllocation_transfer`,
    data
  });
}


// 转赠送列表
export async function postAdminOmsGetWarehouseGive(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getWarehouseGive`,
    data
  });
}

// 开通e签宝 有香如故
export async function postAdminPricingOpen_eqb_yxrg(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/Open_eqb_yxrg`,
    data
  });
}

// 水洗唛预览
export async function postAdminCodegetUnprinted(data) {
  return await httpClient.post({
    url: `/Admin/Code/getUnprinted`,
    data
  });
}

// 查询待开票列表
export async function postAdminBanNiuRequestInvoicelist(data) {
  return await httpClient.post({
    url: `/Admin/BanNiu/requestInvoicelist`,
    data
  });
}


// 发票查询列表
export async function postAdminBanNiuGetInvoiceList_all(data) {
  return await httpClient.post({
    url: `/Admin/BanNiu/getInvoiceList_all`,
    data
  });
}

// 获取店铺
export async function postAdminBanNiuGetInvoiceShop(data) {
  return await httpClient.post({
    url: `/Admin/BanNiu/getInvoiceShop`,
    data
  });
}

// 下载发票
export async function postAdminBanNiulookInvoicing(data) {
  return await httpClient.post({
    url: `/Admin/BanNiu/lookInvoicing`,
    data
  });
}

// 开票信息修改
export async function postAdminSetInvoiceDetail(data) {
  return await httpClient.post({
    url: `/Admin/BanNiu/setInvoiceDetail`,
    data
  });
}


// 单张合并提交操作 | 多合一修改操作
export async function postAdminsetrequestInvoicedetail(data) {
  return await httpClient.post({
    url: `/Admin/BanNiu/setrequestInvoicedetail`,
    data
  });
}

// 提交冲红（单|多 ）
export async function postAdminsetHongchong(data) {
  return await httpClient.post({
    url: `/Admin/BanNiu/setHongchong`,
    data
  });
}

// 勾选合并的显示（单|多）
export async function postAdminrequestInvoicedetail(data) {
  return await httpClient.post({
    url: `/Admin/BanNiu/requestInvoicedetail`,
    data
  });
}

// 获取多合一列表
export async function postAdminMultiinOneInvoicelist(data) {
  return await httpClient.post({
    url: `/Admin/BanNiu/MultiinOneInvoicelist`,
    data
  });
}

// 取消合并
export async function postAdmincancellationInvoicelist(data) {
  return await httpClient.post({
    url: `/Admin/BanNiu/cancellationInvoicelist`,
    data
  });
}

// 提交(开票|冲红）
export async function postAdminsetkaipiao(data) {
  return await httpClient.post({
    url: `/Admin/BanNiu/setkaipiao`,
    data
  });
}


// 开票详情
export async function postAdmingetInvoiceDetail(data) {
  return await httpClient.post({
    url: `/Admin/BanNiu/getInvoiceDetail`,
    data
  });
}

// 多张张提交(开票|冲红）
export async function postAdminsetkaipiaosmany(data) {
  return await httpClient.post({
    url: `/Admin/BanNiu/setkaipiaosmany`,
    data
  });
}


// 新开票信息查看
export async function postAdminlookHongchongdetail(data) {
  return await httpClient.post({
    url: `/Admin/BanNiu/lookHongchongdetail`,
    data
  });
}

// 获取对账品牌主体
export async function postAdminPricinggetPurchaseinBrand_code(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getPurchaseinBrand_code`,
    data
  });
}

// 更新新发票数据
export async function postAdminBanNiugetInvoiceListBanniu(data) {
  return await httpClient.post({
    url: `/Admin/BanNiu/getInvoiceListBanniu`,
    data
  });
}

// 内购提示
export async function postAdminOmsgetAllocation_notes(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getAllocation_notes`,
    data
  });
}


// 水洗唛标准
export async function postAdminCodesetProcessingMaintainListXimai(data) {
  return await httpClient.post({
    url: `/Admin/Code/setProcessingMaintainListXimai`,
    data
  });
}


// 返修对账单列表
export async function postAdminPricinggetRepairRefundReList(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getRepairRefundReList`,
    data
  });
}

// 返修对账单付款
export async function postAdminPricingpayRepairRefundList(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/payRepairRefundList`,
    data
  });
}

// 返修对账单审核
export async function postAdminPricingexamineRepairRefundList(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/examineRepairRefundList`,
    data
  });
}

// 返修对账单作废
export async function postAdminPricingdelRepairRefundList(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/delRepairRefundList`,
    data
  });
}

// 返修对账单详情
export async function postAdminPricinglookRepairRefundList(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/lookRepairRefundList`,
    data
  });
}

// // 创建返修对账单(废弃)
// export async function postAdminPricingaddRepairRefundList(data) {
//   return await httpClient.post({
//     url: `/Admin/Pricing/addRepairRefundList`,
//     data
//   });
// }

// 创建返修对账单
export async function postAdminPricingaddRepairRefundList_new(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/addRepairRefundList_new`,
    data
  });
}

// 返修单回货列表
export async function postAdminPricinggetRepairRefundList_rp(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/getRepairRefundList_rp`,
    data
  });
}

// 提交返修回货数据
export async function postAdminPricingaddRepairRefundList_rp(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/addRepairRefundList_rp`,
    data
  });
}

// 提交绣花罚款数据
export async function postAdminPricingaddembroiderFineAmount(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/addembroiderFineAmount`,
    data
  });
}

// 验证款号
export async function postAdminPricinggettype_noisexist(data) {
  return await httpClient.post({
    url: `/Admin/Pricing/gettype_noisexist`,
    data
  });
}


// 转销售列表（全员）
export async function postAdminOmsgetsale_timesExcel_listall(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getsale_timesExcel_listall`,
    data
  });
}

// 转销售列表（个人）
export async function postAdminOmsgetsale_timesExcel_list(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getsale_timesExcel_list`,
    data
  });
}

// 转销售详情
export async function postAdminOmsgetsale_timesExcel_listdetail(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getsale_timesExcel_listdetail`,
    data
  });
}


// 转销售提交
export async function postAdminOmsaddsale_timesExcel(data) {
  return await httpClient.post({
    url: `/Admin/Oms/addsale_timesExcel`,
    data
  });
}

// 获取导入的表格数据（转销售）
export async function postAdminOmsgetsale_timesExcel(data) {
  return await httpClient.post({
    url: `/Admin/Oms/getsale_timesExcel`,
    data
  });
}

// 有箱单次品退货列表
export async function postWarehousegetdispatchretuenlist(data) {
  return await httpClient.post({
    url: `/Admin/Warehouse/getdispatchretuenlist`,
    data
  });
}

// 查询工厂的箱单数据
export async function postWarehousegetdispatchlist(data) {
  return await httpClient.post({
    url: `/Admin/Warehouse/getdispatchlist`,
    data
  });
}

// 查询箱单的sku数据
export async function postWarehousegetdispatchlistsku(data) {
  return await httpClient.post({
    url: `/Admin/Warehouse/getdispatchlistsku`,
    data
  });
}

// 创建 | 编辑 |审批（有单）
export async function postWarehousesetdispatchlistsku(data) {
  return await httpClient.post({
    url: `/Admin/Warehouse/setdispatchlistsku`,
    data
  });
}

// 批量提交审批
export async function postWarehousesetdispatchretuenprintapprove(data) {
  return await httpClient.post({
    url: `/Admin/Warehouse/setdispatchretuenprintapprove`,
    data
  });
}

// 详情
export async function postWarehousegetdispatchretuendetail(data) {
  return await httpClient.post({
    url: `/Admin/Warehouse/getdispatchretuendetail`,
    data
  });
}

// 加载打印数据列表
export async function postWarehousegetdispatchretuenprintlist(data) {
  return await httpClient.post({
    url: `/Admin/Warehouse/getdispatchretuenprintlist`,
    data
  });
}

// 提交打印数据
export async function postWarehousesetdispatchretuenprintlist(data) {
  return await httpClient.post({
    url: `/Admin/Warehouse/setdispatchretuenprintlist`,
    data
  });
}


// 验证sku
export async function postWarehousesetinspectsku(data) {
  return await httpClient.post({
    url: `/Admin/Warehouse/setinspectsku`,
    data
  });
}

// 提交|编辑 数据(无单)
export async function postWarehousesetnodispatchlistsku(data) {
  return await httpClient.post({
    url: `/Admin/Warehouse/setnodispatchlistsku`,
    data
  });
}

// 删除
export async function postWarehousedeldispatchretuendetail(data) {
  return await httpClient.post({
    url: `/Admin/Warehouse/deldispatchretuendetail`,
    data
  });
}
